package com.example.chatroom.service;


import com.example.chatroom.controller.param.AddApplyFriendParam;
import com.example.chatroom.controller.param.GetUsersParam;
import com.example.chatroom.controller.param.HandlerApplyFriendParam;
import com.example.chatroom.service.dto.GetApplyFriendsDTO;
import com.example.chatroom.service.dto.GetUsersDTO;

import java.util.List;

public interface IApplyFriendService {

    /**
     * 模糊查询用户
     * @param getUsersParam
     * @return
     */
    GetUsersDTO getUsers(GetUsersParam getUsersParam,Long userId);

    /**
     * 添加记录到添加好友表中
     * @param addApplyFriendParam
     */
    Long addInfo(AddApplyFriendParam addApplyFriendParam);

    /**
     * 获取好友请求列表
     * @param userId
     * @return
     */
    List<GetApplyFriendsDTO> getApplyFriends(Long userId);

    /**
     * 处理好友申请
     * @param handlerApplyFriendParam
     */
    void handlerApplyFriend(HandlerApplyFriendParam handlerApplyFriendParam);
}
